package com.fxnotes.domain.repository;

import com.fxnotes.database.inmemory.repository.EntityDuplicateException;
import com.fxnotes.domain.model.Book;
import com.fxnotes.domain.model.Chapter;
import java.util.List;

public interface IBookRepository {

    void add(Book book) throws EntityDuplicateException;
    
    void updateName(Book book, String name) throws EntityDuplicateException;
    
    void updateChapters(Book book, List<Chapter> chapters);
    
    void remove(Book book);

    List<Book> findAll();
}
